package com.kx.decorator_mode;

/**
 * Created on 2021/10/21.
 *
 * @author KaiXuan Xiao
 */
public class ComponentImpl implements Component {

    private String name;  // 谁

    public ComponentImpl(String name){
        this.name = name;
    }

    @Override
    public void operation() {
        System.out.print("穿上");
    }

    public void show(){
        System.out.println(String.format("装扮的%s", name));
    }
}
